package com.senven.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.databind.ser.Serializers;
import com.senven.api.pojo.Organ;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author LQP
 */
//防止Autowired报错
@Component
@Mapper
public interface OrganMapper extends BaseMapper<Organ> {
    public List<Organ> queryOrganList();
    // 不支持模糊查询
    public Organ queryOrganListById(int id);

    // 支持模糊查询
    public List<Organ> queryOrganListByName(String name);

    //插入一个社团
    public int insertOrgan(Organ organ);

    public int updateOrgan(Organ organ);

    public int deleteOrgan(int id);
 }
